﻿using Microsoft.VisualStudio.TestPlatform.UnitTestFramework;
using Microsoft.VisualStudio.TestPlatform.UnitTestFramework.AppContainer;
using UnitTestWinRTConverters.ObjectsTestBase;
using WinRTConverters.Values;
using WinRTConverters.Visibility;
using Windows.UI.Xaml;
using Assert = Microsoft.VisualStudio.TestPlatform.UnitTestFramework.Assert;

namespace UnitTestWinRTConverters
{
    [TestClass]
    public class ValuesConvertersUnitTest
    {
        [UITestMethod]
        public void ChoiceDoubleAccordingToBooleanConverterTest()
        {
            var objectTest = new UITextBoxTest(new ChoiceDoubleAccordingToBooleanConverter(), true, 175);
            Assert.AreEqual(175, double.Parse(objectTest.ConvertValue.ToString()));
        }
    }
}
